<script>
	$(document).ready(function(){
		<?php if ($this->session->flashdata('success')) { ?>
		$.gritter.add({
			title: 'Success',
			text: '<?php echo $this->session->flashdata('success')?>'
		});
		<?php }?>
		<?php if ($this->session->flashdata('info')) { ?>
		$.gritter.add({
			title: 'Info',
			text: '<?php echo $this->session->flashdata('info')?>'
		});
		<?php }?>
		<?php if($this->session->flashdata('error')){?>
		$.gritter.add({
			title: 'Error',
			text: '<?php echo $this->session->flashdata('error')?>'
		});
		<?php } ?>
	})
</script>